package com.qumitech.visualnovel.datasource.console;

import com.qumitech.visualnovel.model.dao.console.RemainUserCount;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface RemainUserCountMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(RemainUserCount record);

    int insertSelective(RemainUserCount record);

    RemainUserCount selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(RemainUserCount record);

    int updateByPrimaryKey(RemainUserCount record);

    List<RemainUserCount> getRemainAccountList(@Param("startTime") String startTime,
                                               @Param("endTime") String endTime,
                                               @Param("appName") String appName,
                                               @Param("channel") String channel,
                                               @Param("appVersion") String appVersion,
                                               @Param("system") String system,
                                               @Param("gender") Integer gender
                                               );

    List<RemainUserCount> getRemainAccountListExceptRedirect(@Param("startTime") String startTime,
                                               @Param("endTime") String endTime,
                                               @Param("appName") String appName,
                                               @Param("channel") String channel,
                                               @Param("appVersion") String appVersion,
                                               @Param("system") String system,
                                               @Param("gender") Integer gender
    );

    List<RemainUserCount> getRemainAccountListRedirect(@Param("startTime") String startTime,
                                               @Param("endTime") String endTime,
                                               @Param("appName") String appName,
                                               @Param("channel") String channel,
                                               @Param("appVersion") String appVersion,
                                               @Param("system") String system,
                                               @Param("gender") Integer gender
    );
}